package com.gis.bigdata.spark.core.framework.controller

import com.gis.bigdata.spark.core.framework.common.TController
import com.gis.bigdata.spark.core.framework.service.WordCountService

/**
 *  控制层
 *
 * @author LnnuUser
 * @create 2021-09-02-上午8:58
 */
class WordCountController extends TController{

  private val wordCountService: WordCountService = new WordCountService()

  // 调度
  def disPatch: Unit = {

    val array: Array[(String, Int)] = wordCountService.dataAnalysis()

    array.foreach(println)
  }

}
